package com.jiexinyun.dto.every;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Schema(description = "备件采购批次子项", example = "{}")
public class AccessoryManifestItemsUpdateEvery {

    @NotBlank(message = "批次号需要输入")
    @Schema(description = "批次号",example = "48618452315")
    private String batchNo;

    @NotBlank(message = "规格型号需要输入")
    @Schema(description = "规格型号",example = "研发部")
    private String spec;

    @NotBlank(message = "品牌需要输入")
    @Schema(description = "品牌",example = "山地牌")
    private String brand;

    @NotNull(message = "数量需要输入")
    @Min(value = 1, message = "数量需要大于0")
    @Schema(description = "数量", example = "50")
    private Integer quantity;

    @NotBlank(message = "到货日期需要输入")
    @Schema(description = "到货日期", example = "2012-12-12")
    private String arriveDate;

    @Schema(description = "备注")
    private String remark;

}
